<?php

/**
 * Created by PhpStorm.
 * User: fanfz_000
 * Date: 2015/4/7 0007
 * Time: 10:46
 * 作用 ：关于我控制器
 */
class About_me extends CI_Controller
{
    function __construct()
    {
        parent::__construct();
    }

    //首页
    function index()
    {
        //缓存60分钟更新一次
        $this->output->cache(60);

        //模型操作，图片轮播图片列表
        $this->load->model('Backgroudurl_model', 'image', TRUE);
        $data['image_list'] = $this->image->show_image_list();

        //模型操作,关于我
        $this->load->model('Aboutme_model', 'about_me', TRUE);
        $data['about_me'] = $this->about_me->show_me_info();

        //模型操作,标签云
        $this->load->model('Label_model', 'label', TRUE);
        $data['label_list'] = $this->label->show_label_list();

        //模型操作,最近文章
        $this->load->model('Word_model', 'word', TRUE);
        $data['word_list'] = $this->word->show_word_list(0, 3);

        //模型操作,友情链接
        $this->load->model('Friendhref_model', 'friend_href', TRUE);
        $data['friend_list'] = $this->friend_href->show_friend_href_list();

        //页面加载
        $this->load->view('header', $data);
        $this->load->view('aboutme_header');
        $this->load->view('about_me');
        $this->load->view('aboutme_aside');
        $this->load->view('footer');
    }
}